package com.glepoch.springbootsecuritymybatis.compoment.constant.statuscode;

/**
 * @description: 公共请求状态字典类
 * @author: ygl
 * @time:
 */
public enum GlobalStatusCode implements BaseStatusEnum {
    //token分类：101XX
    INCONSISTENT_DATATYPE(10207, "数据类型不匹配！"),
    DATA_MUST_LIST(10215, "导出输入结果必须为List或RespResultVO和它的子类对象！"),
    MUST_ONLY_ONE_ARG(10216, "返回结果类型中的泛型参数必须有且只有一个！"),
    EXPORTFLAG_MUST_NUMBER(10217, "导出标识必须为数字！"),
    TITLE_BEAN_NOT_THE_DATA_OBJ(10258, "返回结果实际存放的对象与导出表头对象不匹配！"),
    DATA_MUST_NOT_NULL(10259, "没有满足条件的数据!"),
    NOT_TYPE_ARG(10260, "返回值没指定泛型类型！"),
    MUST_NOT_BASIC_DATA_TYPE(10261,"返回值泛型不能为基本数据类型包装类和Object类"),
    EXPORT_EXCEL_ERROR(10262, "EXCEL导出异常！");


    private int code;
    private String message;

    GlobalStatusCode(int code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public int getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }
}
